package com.zcc.makingfriend.mapper;

import com.zcc.makingfriend.dao.TbUserConcerned;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author zcc
 */
@Mapper
public interface TbUserConcernedMapper {
    int addTbUserConcerned(TbUserConcerned tbUserConcerned);

    int deleteTbUserConcerned(Long userId, Long concernedId);

    int getFanNumbers(Long concernedId);

    int getConcernedNumbers(Long userId);

    List<TbUserConcerned> getFans(Long concernedId);

    List<TbUserConcerned> getConcerneds(Long userId);

    TbUserConcerned isConcerned(Long userId, Long concernedId);
}
